package me.zhengjie.base;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author Zheng Jie
 * @date 2019年10月24日20:48:53
 */
@Getter
@Setter
public class BaseOut implements Serializable {


    private int code;
    private String msg;
    private Object data;

    public BaseOut(int code,String msg, Object data) {
        this.msg = msg;
        this.code = code;
        this.data = data;
    }
    public BaseOut(String msg, Object data) {
        this.msg = msg;
        this.code = 0;
        this.data = data;
    }

    @Override
    public String toString() {
        return "BaseOut{" +
                " code=" + code +
                ",msg='" + msg + '\'' +
                ", data=" + data +
                '}';
    }
}
